#!/usr/bin/env python
# -*- coding: utf-8 -*-

import os
import sys
import json

sys.path.append(
    os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__file__))), "qtrade")
)

from finta.finta import TA as ta
import db


def test_inds():
    ts_code = "000001.SZ"
    # indicator = "KDJ"
    # indicator = "SMAG"
    indicator = "CHIP_WINNER"
    ind_df = db.IndicatorTB.get_stock_indicator(ts_code, indicator)
    # daily = db.DailyTB.get_daily(ts_code)
    print(ind_df)

if __name__ == "__main__":
    test_inds()


